<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 
<h3>Please Fill the fields</h3>

<c:if test="${not empty error}">
	<div class="danger">
		<p class="alert alert-danger">${error}</p>
	</div>
</c:if>

<form:form action="${action}" commandName="client" modelAttribute="client" method="POST">

	<div class="form-group">
		<label for="login" class="col-sm-4 control-label">UserName:</label>
		<div class="col-sm-8">
			<input type="text" id="login" name="login" class="form-control" placeholder="Enter userName">
		</div>
	</div>
	<div class="form-group">
		<label for="password" class="col-sm-4 control-label">Password:</label>
		<div class="col-sm-8">
			<input type="text" id="password" name="password" class="form-control" placeholder="Enter password">
		</div>
	</div>
	<div class="form-group">
		<label for="firstName" class="col-sm-4 control-label">FirstName:</label>
		<div class="col-sm-8">
			<input type="text" id="firstName" name="firstName" class="form-control" placeholder="Enter FirstName">
		</div>
	</div>
	<div class="form-group">
		<label for="lastName" class="col-sm-4 control-label">LastName:</label>
		<div class="col-sm-8">
			<input type="text" id="lastName" name="lastName" class="form-control" placeholder="Enter LastName">
		</div>
	</div>
	
	<div class="form-group">
		<label for="email" class="col-sm-4 control-label">Email:</label>
		<div class="col-sm-8">
			<input type="text" id="email" name="email" class="form-control" placeholder="Enter Email">
		</div>
	</div>
	
	<input type="submit" value="Save" />
	<input type="reset" value="Cancel" onclick="window.history.back();"/>
</form:form> 
